<template>
    <div>首页</div>    
</template>

<script setup>
import { onMounted, ref, reactive } from 'vue'
import { ElLoading } from 'element-plus';
import {callBackApi} from '../api'
const value = ref()
const loading = ref(false);
const openLoading = () => {
loading.value = ElLoading.service({
    lock: true,
    text: 'Loading',
    background: 'rgba(0, 0, 0, 0.7)'
})
}


onMounted(() => {
    //testapi()
})

async function testapi() {
    let request_body = {
            appName: "base",
            modelName: "Permission",
            query: {
                type__contains: "menu"
            },
            exclude: {
                type: "menu_dir"
            },
            order_by: "id",
            desc: true
    }
    let res = await callBackApi(
        "base/queryModel/",
        request_body,
        {loading:true},
        {
            lock: true,
            text: 'Loading',
            background: 'rgba(0, 0, 0, 0.7)'
        }
    );
    console.log(res)
    
}
</script>

<style scoped lang="scss">

</style>
  
  